﻿@model Model.ENTRIES

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <div class="box box-primary">
        <div class="box-header with-border">
            <h4>Wypełnianie Kwitu</h4>
            <hr />
            <div class="form-group">
                <label>Numer kwitu:</label>
                @Html.EditorFor(model => model.RECEIPT, new {htmlAttributes = new {@class = "form-control", @placeholder = "Wpisz numer kwitu"}})
            </div>

            <div class="form-group">
                <label>Kod materiału: </label>
                @Html.EditorFor(model => model.ENTEREDPARTNUMBER, new { htmlAttributes = new { @class = "form-control", @placeholder = "Wpisz kod materiału" } })
            </div>

            <div class="form-group">
                <label>Opis</label>
                <input type="text" class="form-control" placeholder="Kabel cięty fiat" disabled>
            </div>

            <div class="form-group">
                <label>Obszar: </label>
                @Html.EditorFor(model => model.AREA, new { htmlAttributes = new { @class = "form-control", @placeholder = "Podaj obszar" } })
            </div>

            <div class="form-group">
                <label>Ilość: </label>
                @Html.EditorFor(model => model.QUANTITY, new { htmlAttributes = new { @class = "form-control", @placeholder = "Wprowadź ilość" } })
            </div>

            <div class="form-group">
                <label>Skład: </label>
                <select class="form-control">
                    <option>1001</option>
                    <option>0001</option>
                    <option>1000</option>
                </select>
            </div>

            <div class="form-group">
                <label>Jednostka miary: </label>
                <select class="form-control">
                    <option>SZT</option>
                    <option>M</option>
                    <option>KG</option>
                </select>
            </div>

            <div class="form-group">
                <label>Komentarz: </label>
                @Html.EditorFor(model => model.COMMENT, new {htmlAttributes = new {@class = "form-control", @placeholder = "Wpisz komentarz"}})
            </div>

            <input type="submit" value="Zapisz" class="btn btn-primary" />
            @Html.ActionLink("Powrót", "Index", new { id = 1 }, new { @class = "btn btn-primary" })
        </div>
    </div>
}

<script>
    $('#data1').datepicker({
        dateFormat: 'dd-mm-yy',
        minDate: '+5d',
        changeMonth: true,
        changeYear: true,
        altField: "#idTourDateDetailsHidden",
        altFormat: "yy-mm-dd"
    });
    $('#data2').datepicker({
        dateFormat: 'dd-mm-yy',
        minDate: '+5d',
        changeMonth: true,
        changeYear: true,
        altField: "#idTourDateDetailsHidden",
        altFormat: "yy-mm-dd"
    });
</script>

